 /**
 * @(#) StartupCommand.as
 *
 * @date		2009. 02. 17.
 * @version		1.0
 * @author		Shin, Yunwoo
 * @description	Application 시작을 처리하는 Command
 *
 */
package com.skt.common_hr.resupport.controller
{
	
	import com.skt.common_hr.resupport.model.AccountProxy;
	import com.skt.common_hr.resupport.model.ApprovalProxy;
	import com.skt.common_hr.resupport.model.ReqResupportWriteProxy;
	import com.skt.common_hr.resupport.model.ResupportApprovalProxy;
	import com.skt.common_hr.resupport.model.ResupportProxy;
	import com.skt.common_hr.resupport.model.StatementUrlProxy;
	import com.skt.common_hr.resupport.model.SupportStandardProxy;
	import com.skt.common_hr.resupport.view.ResupportMediator;
	
	import org.puremvc.as3.multicore.interfaces.ICommand;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;

	public class StartupCommand extends SimpleCommand implements ICommand
	{

		override public function execute(note:INotification):void
		{
			var app:Resupport = note.getBody() as Resupport;
			trace("execute startupCommand in MedicalMoney Module");

			facade.registerProxy(new ResupportProxy());
			facade.registerProxy(new ReqResupportWriteProxy());
			facade.registerProxy(new ApprovalProxy());
			facade.registerProxy(new AccountProxy());
			facade.registerProxy(new SupportStandardProxy());
			facade.registerProxy(new StatementUrlProxy());

			facade.registerProxy(new ResupportApprovalProxy());

			// MVC 모델중 View와 관련한 mediator들을 등록한다.
			facade.registerMediator(new ResupportMediator(app.view));
		}
	}
}